<?php
@header("content-type:text/html;charset=utf-8");
@header("Access-Control-Allow-Origin:*");
mysql_connect("localhost:3306","root","root");
mysql_select_db("1904");
mysql_query("set character set utf8");
mysql_query("set names utf8");
$id=$_GET["id"];
$sql="select * from userinfo where id like '$id'";
$result=mysql_query($sql);
$all=array();
while($item=mysql_fetch_assoc($result)){
  $all[]=$item;
}
echo json_encode($all)
?>
 
